package com.csun.cmny.provider.service;

import com.csun.cmny.provider.pojo.CacBaseBigItem;

public interface CacBaseBigItemService {
    /**
     * 添加小项
     * author:liqian
     * date:2018-10-31 17:18
     */
    int insert(CacBaseBigItem cacBaseBigItem);

    /**
     * 根据小项id修改小项
     * author:liqian
     * date:2018-10-31 17:18
     */
    int update(CacBaseBigItem cacBaseBigItem);

    /**
     * 根据小项id查询小项
     * author:liqian
     * date:2018-10-31 17:18
     */
    CacBaseBigItem selectCbiById(Integer bigItemId);

    /**
     * 根据小项id删除小项
     * author:liqian
     * date:2018-10-31 17:18
     */
    int delById(Integer bigItemId);

    /**
     * 根据CacMinorItem查询CacMinorItem
     * author:liqian
     * date:2018-10-31 17:18
     */
    CacBaseBigItem selectByCbi(CacBaseBigItem cacBaseBigItem);

    /**
     * 根据类别id删除大项
     * author:liqian
     * date:2018-10-31 17:18
     */
    int delByTypeId(Integer cacTypeId);

    /**
     * 根据大项id查询单个大项及大项下的小项
     * author:liqian
     * date:2018-11-01 15:08
     */
    CacBaseBigItem selectOneById(Integer bigItemId);
}
